package com.qys.livesMall.shop.modal.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 广告VO
 *
 * @author yxh
 * @since 2023-06-28 09:12:47
 */
@Data
@Schema(name = "AdvertisementVO", description = "广告VO")
public class AdvertisementVO {

    @JsonSerialize(using = ToStringSerializer.class)
    @Schema(description = "id")
    private Long id;

    /**
     * 广告标题
     */
    @Schema(description = "广告标题")
    private String title;

    /**
     * 广告内容
     */
    @Schema(description = "广告内容")
    private String content;


    /**
     * 封面
     */
    @Schema(description = "封面")
    private String cover;


    /**
     * 富文本
     */
    @Schema(description = "富文本")
    private String richText;

    /**
     * 超链接
     */
    @Schema(description = "超链接")
    private String hyperlink;

    //更新人
    private String updateBy;

    //更新时间
    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @Schema(description = "链接类型")
    private Integer type;

    @Schema(description = "活动类型")
    private Integer activityType;

    @Schema(description = "关联活动Id/外链url")
    private String activityId;
}

